FROM gz02-artifact.srdcloud.cn/capt-release-docker-local/openjdk:11-jdk-alpine

ENV TIME_ZONE=Asia/Shanghai \
        LANG=en_US.UTF-8 \
        LANGUAGE=en_US.UTF-8 \
        LC_ALL=en_US.UTF-8

ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8

WORKDIR /app

COPY ./target/star-gateway-1.0-SNAPSHOT.jar /app/star-gateway-1.0-SNAPSHOT.jar


RUN echo "${TIME_ZONE}" > /etc/timezone \
  && ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime

CMD [ "sh", "-c",  "java $JAVA_OPTS -jar /app/star-gateway-1.0-SNAPSHOT.jar"]